package cn.getech.data.development.constant;

import lombok.Getter;

@Getter
public enum PressionEnParamType {

    NOEN(0, "不加密"),
    EN(1, "RSA");
    private int id;
    private String name;

    PressionEnParamType(int id, String name) {
        this.id = id;
        this.name = name;
    }

    public static PressionEnParamType ObjOf(Integer status) {
        if (status == null) {
            return null;
        } else {
            for (PressionEnParamType s : PressionEnParamType.values()) {
                if (s.getId() == status) {
                    return s;
                }
            }
            return null;
        }
    }
}
